const express = require('express')
const router = express.Router()
const controller = require('../controller/user')

// 用户登录
router.post('/login', controller.login)

// 用户注册
router.post('/', controller.register)

// Get Current User
router.get('/', controller.currentUser)

// Update User
router.put('/', controller.updateUser)

module.exports = router